#include "mainwindow.h"
#include "ui_mainwindow.h"
#include<QLabel>
#include "mylable.h"
MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
   // QLabel* lable = new QLabel(this);//参数的作用:给创建的对象提供一个父对象
   // lable->setText("hello qt");
    mylable* lab = new mylable(this);
    lab->setText("heksehbfow");

}

MainWindow::~MainWindow()
{
    delete ui;
}

